#ifndef IMAGE_H
#define IMAGE_H


#include "r_cg_macrodriver.h"


#define IMAGE_MAX_SIZE                 20



#define IMAGE_PROMPT_1        0
#define IMAGE_PROMPT_2        1
#define IMAGE_PROMPT_3        2
#define IMAGE_PROMPT_4        3
#define IMAGE_PROMPT_5        4
#define IMAGE_PROMPT_6        5
#define IMAGE_PROMPT_7        6
#define IMAGE_PROMPT_8        7
#define IMAGE_PROMPT_9        8
#define IMAGE_PROMPT_10       9
#define IMAGE_PROMPT_11       10
#define IMAGE_PROMPT_12       11
#define IMAGE_PROMPT_13       12
#define IMAGE_PROMPT_14       13
#define IMAGE_PROMPT_15       14
#define IMAGE_PROMPT_16       15


#define IMAGE_PROMPT_COUNT    (IMAGE_PROMPT_16+1)

#define IMAGE_PROMPT_BURN      IMAGE_PROMPT_16 

#define IMAGE_PROMPT_ECO      IMAGE_PROMPT_8


#define DIGITAL1_A        IMAGE_PROMPT_1
#define DIGITAL1_B        IMAGE_PROMPT_2
#define DIGITAL1_C        IMAGE_PROMPT_3
#define DIGITAL1_D        IMAGE_PROMPT_4
#define DIGITAL1_E        IMAGE_PROMPT_5
#define DIGITAL1_F        IMAGE_PROMPT_6 
#define DIGITAL1_G        IMAGE_PROMPT_7

#define DIGITAL2_A        IMAGE_PROMPT_9
#define DIGITAL2_B        IMAGE_PROMPT_10
#define DIGITAL2_C        IMAGE_PROMPT_11
#define DIGITAL2_D        IMAGE_PROMPT_12
#define DIGITAL2_E        IMAGE_PROMPT_13
#define DIGITAL2_F        IMAGE_PROMPT_14 
#define DIGITAL2_G        IMAGE_PROMPT_15


/*---------------------------------------------------------------------------*
 |  Time duration for which the blinking segments remain on. Should be in 
 |  tenth of a second. 
 |  Ignored when IMAGE_BLINK_TIME_DYNAMIC is set to true 
 *---------------------------------------------------------------------------*/

#define IMAGE_BLINK_ON                 15


/*---------------------------------------------------------------------------*
 |  Time duration for which the blinking segments remain off. Should be in 
 |  tenth of a second
 |  Ignored when IMAGE_BLINK_TIME_DYNAMIC is set to true 
 *---------------------------------------------------------------------------*/

#define IMAGE_BLINK_OFF                5

#define IMAGE_REQUEST_BLINK     0x10


uint8_t *ImageAddress(void);

void ImagePromptSet(uint8_t promptId, uint8_t onOffBlink);

void ImageOperation(void);

void ImageProcess(void);

uint8_t ImageGetBlinkState(void);



#endif